Color naming, color categorization and describing color composition of images

ABSTRACT

The invention provides methods, systems and apparatus for assigning color names to individual image pixels, and generating verbal description of color composition in images, suitable for a wide variety of information processing applications. For an isolated image pixel (individual color sample or color value) an illustrative embodiment of this invention uses a predetermined vocabulary of color names, and then generates a distance measure describing the best color match and corresponding color name for the given pixel. For the input image, an illustrative embodiment of this invention computes the simplified representation of the scene, consistent with human perception, and uses the predetermined vocabulary, syntax rules and metric to assign color names to all perceptually significant objects and regions and obtain the verbal description of the overall color composition. The invention is also applicable to other types of information signals, such as sequences of video frames, web pages, etc.

TECHNICAL FIELD

The present invention is directed to digital images. It is more particularly directed to color management and color analysis methodologies. It is more specifically directed to color categorization, color naming, and color composition of images, video and multimedia objects.

BACKGROUND

Color is one of the main visual cues and has been studied extensively on many different levels, starting from the physics and psychophysics of color, to the use of color principles in practical problems. These include accurate rendering, display and reproduction, image filtering, coding, retrieval, and numerous other applications in scientific visualization, computer graphics, image and video processing. Interestingly, although color naming represents one of the most common visual tasks, it has not received significant attention in the engineering community. Yet today, with rapidly emerging visual technologies and multimedia, and the development of sophisticated user interfaces and human-machine interactions, the ability to name individual colors, point to objects of a certain color, and convey the impression of color composition becomes an increasingly important task. Color cues can be used in interactive visualization and computer graphics. Color naming facilitates natural user interface design. The extraction of higher-level color descriptors represents a challenging problem in image analysis and computer vision, as these descriptors often provide link to image content. When combined with image segmentation, it would be advantageous to be able to use color naming to select objects by color, describe the appearance of the image and even generate semantic annotations.

For example, regions labeled as light blue and strong green may represent sky and grass, vivid colors are typically found in man-made objects, while modifiers such as brownish, grayish and dark convey the impression of the atmosphere in the scene.

The applications mentioned so far use a flexible computational model for color categorization, color naming or extraction of color composition (i.e. color appearance of a given scene or image to a human observer). Modeling human behavior in color categorization involves solving, or at least providing some answers to several important problems. The first problem involves the definition of the basic color categories and “most representative examples”, called prototypical colors, which play a special role in structuring these color categories. Another issue is how to expand the notion of basic color terms into a “general” yet precise vocabulary of color names that can be used in different applications. The next problem involves the definition of category membership. Although the idea that color categories are formed around prototypical examples has received striking support in many studies, the mechanisms of color categorization and category membership are not yet fully understood.

According to the theories postulated to explain human perception, color vision is initiated in retina where the three types of cones receive the light stimulus. The cone responses are then coded into one achromatic and two antagonistic chromatic signals. These signals are interpreted in the cortex, in the context of other visual information received at the same time and the previously accumulated visual experience (memory). Once the intrinsic character of colored surface has been represented internally, one may think that the color processing is complete. However, an ever-present fact about human cognition is that people go beyond the purely perceptual experience to classify things as members of categories and attach linguistic labels to them. Color is no exception. That color categories are perceptually significant can be demonstrated by the “striped” appearance of the rainbow. In physical terms, the rainbow is just a light with the wavelength changing smoothly from 400-700 nm. The unmistakable stripes of color in the rainbow suggest an experimental basis for the articulation of color into at least some categories. However, to model color naming, it is not sufficient to define the color names as functions of the wavelength range. This would account only for pure monochromatic stimuli, which are very rare in real-world situations, and would also leave out non-spectral colors like brown, white and black. Breakthroughs in the current understanding of color categorization came from several sources. This includes a cross-cultural study, which studied the color naming behavior with subjects from variety of languages. Twenty languages were examined experimentally and another 78 through the literature review and discovered remarkable regularities in the shape of the basic color vocabulary. As a result of their study, a concept of basic color terms were introduced which lead to work on defining the color categories corresponding to these basic terms. Eleven basic terms were identified in English: black, white, red, green, yellow, blue, brown, pink, orange, purple and gray. Experiments also demonstrated that the humans perform much better in picking the “best example” for each of the color terms than in establishing the boundaries between the categories. This lead to the definition of focal colors representing the centers of color categories, and the hypothesis of graded (fuzzy) membership. Many later studies have proven this hypothesis, indicating that prototypical colors play a crucial role in internal representation of color categories, and the membership in color categories seem to be represented relative to the prototype. Unfortunately, the mechanism of color naming is still not completely understood. There exist few theoretical models of color naming based explicitly on neurophysiology of color vision and addressing the universality of color foci and graded membership. Apart from not being developed or implemented as full-fledged computational models, these have important drawbacks. In one model membership in color categories is formalized in terms of fuzzy set theory, by allowing the objects to be members of a given set to some degree. In terms of color categories, this means that a focal or prototypical color will be represented as having a membership degree of 1 for it's category. Other, non-focal colors will have membership degrees that decrease systematically with the distance from the focal color in some color space. However, this model considers only four fuzzy sets (red, green, yellow and blue), and supporting other color terms requires the introduction of new and ad hoc fuzzy set operations. Furthermore, it is not clear how the non-spectral basic color categories, such as brown, pink and gray are to be dealt with, nor how to incorporate the learning of color names into the model. Another model defines four physical parameters of the stimulus: wavelength, intensity, purity and adaptation state of the retina. According to this model, the pre-cortical visual system performs analog-to-digital conversion of these four parameters, and represents eleven basic color categories as specific combinations of the quantized values. Although interesting for its attempt to take adaptation into account, this model is clearly a gross simplification, which cannot hold in general.

Although color spaces allow for color specification in unambiguous manner, in everyday life colors are mainly identified by their names. Although this requires a fairly general color vocabulary and is far from being precise, identifying a color by its name is a method of communication that everyone understands. Hence, there were several attempts towards designing a vocabulary, syntax and standard method for choosing color names. The Munsell color order system known to those skilled in the art, is widely used in applications requiring precise specification of colors. Examples include production of paints, textiles, etc. It is often used as an industry standard, complemented by Munsell's Book of Color which includes 1,200 precisely controlled samples of colors (chips). The chips are arranged such that unit steps between them are intended to be perceptually equal. Each chip is identified by a 3-part code. The brightness scale is represented by the Munsell value with black denoted by 0/ and white by 10/. Munsell chroma increases in steps of two (/2, /4, . . . , /10). The hue scale is divided into 10 hues: red (R), yellow-red (YR), yellow (Y), green-yellow (GY), green (G), blue-green (BG), blue (B), purple-blue (PB), purple (P), red-purple (RP), each hue can be further divided into ten sections. One notable disadvantage of the Munsell system for the color-based processing is the lack of the exact transform from any color spaces to Munsell. For example, a transform proposed by others is fairly complicated and sometimes inaccurate for certain regions of CIE XYZ.

The first listing of over 3000 English words and phrases used to name colors was devised by Maerz and Paul and published in a Dictionary of colors. Even more detailed was a dictionary published by The National Bureau of Standards. It included about 7500 different names that came to general use in specific fields such as biology, geology, philately, textile, dyes and paint industry. Both dictionaries include examples of rare or esoteric words, and the terms are listed in entirely unsystematic manner, making them unsuitable for general use. Following the recommendation of the Inter-Society Council, the National Bureau of Standards developed the ISCC-NBS dictionary of color names for 267 regions in color space. This dictionary employs English terms to describe colors along the three dimensions of the color space: hue, brightness and saturation. One problem with the ISCC-NBS model is the lack of systematic syntax. This was addressed during the design of a new Color-Naming System (CNS). The CNS was based in part on the ISCC-NBS model. It uses the same three dimensions, however the rules used to combine words from these dimensions are defined in a formal syntax. An extension of the CNS model, called the Color-Naming Method (CNM), uses a systematic syntax similar to the one described in the CNS model, and maps the color names from the CNM into color ranges in the Munsell system. All the aforementioned methods are closely related to the Munsell model and thus provide explanation on how to locate each name within the Munsell color space. However, it is not obvious how to use these methods to automatically attach a color name to a color sample, point out examples of named colors, describe the color region and objects in a scene, and ultimately communicate the color composition of the image.

One approach to these problems discloses a process for creating a color name dictionary and for querying an image by color name. The steps of the disclosed process are to identify a preferred color space, which is then divided into a plurality of color space segments, and a color name is assigned to each of the plurality of color segments. In accordance with this invention, a color name dictionary defines a set of the color names and color name boundaries, advantageously in a three-dimensional visually uniform color space. Each color name is represented by a volume in the color space. Given an input pixel, the color name is assigned using a disclosed method, which identifies the volume that includes the color value of the input pixel. However, many psychophysical experiments, have demonstrated that the humans perform much better in picking the “best example” for each of the color terms than in establishing the boundaries between the color names or color categories, and most importantly, that prototypical colors play a crucial role in internal representation of color categories, as the membership in color categories seem to be represented relative to the prototype.

The aforementioned approach also provides a method for querying image by color name. The steps of the disclosed process involve direct application of the color naming method to individual image pixels and computing the fractional count for each color name from the dictionary. To allow for more specific descriptions, the image is divided into a fixed set of regions defined by the image region dictionary (center, bottom, bottom left, etc.), the fractional counts are also computed for each region, and that representation is used to answer queries such as “Which of images in the database have most of color name red in top-right region”. However, this representation is not in agreement with the way humans perceive images and describe their color composition. Humans do not perceive image content as being in top or bottom right portion of the image—they perform logical analysis (image segmentation) and extract meaningful regions and objects from that image. Humans then describe these objects with a single color, e.g. “sky is blue”, not by the fractional count of the color names occurring within. Furthermore, it is well known that although digital images may include millions of colors, only a very small number of these are is actually perceived. Therefore, the direct representation of the color name histogram does not match the representation generated by the human visual system.

A computational model that is better matched to human behavior in naming individual colors has been proposed in this method uses color naming data and applies a variant of the Gaussian normal distribution as a category model. However, this method is constrained to the lowest level of color naming, as it was fitted to the eleven basic color names. For example, although it allows for the intermediate hues, such as greenish yellow, the model does not account for commonly used saturation or luminance modifiers, such as vivid orange or light blue. Since the quality of color categorization depends on the intricate fitting procedure, there is no straightforward extension of the model to include these attributes and the model cannot be used with other sets of color names.

As may be appreciated, due to the shortcomings of the existing methodologies, there is a long-felt and unfulfilled need for a broader computational color naming method that will provide more detailed color descriptions and allow for the higher-level color communication to: automatically attach a color name to a color sample, point out examples of named colors, describe the color region and objects in a scene, and ultimately communicate the overall color composition of an image.

SUMMARY OF THE INVENTION

The foregoing problems are overcome, and other advantages are realized, in accordance with the presently described embodiments and their teachings. Thus, an aspect of this invention is to provide methods, apparatus and systems for automatic color naming, color categorization, and for the automatic derivation of color composition in images. These apply to individual color values to automatically determine a color name for a given color value. The method also applies to digitally represented images, to: 1) automatically attach a color name to each pixel in the image, 2) automatically attach a color name to the regions and objects in the image, 3) point out examples of named colors within the image, 4) generate the verbal description of color composition, 5) replace objects and regions with the named color, with the different color, also specified by its name.

Another aspect is to apply, the term color value to any representation used to specify or describe colors in an unambiguous manner. Example embodiments include, but are not limited to (r, g, b), (L, a, b), (x, y, z), (h, s, v) vectors, when color is specified in the RGB, Lab, XYZ and HSV color spaces, respectively. The provided methods are generally based on the vocabulary of color names and color naming metric derived from perceptual experiments. The method follows relevant studies on human categorization, and, captures human behavior in describing individual colors and color composition of complex images (an image that contains multiple objects, patterns, edges, or colors). There are numerous interesting applications for color naming in image processing, analysis and computer vision. To start with, using color names to label regions can often provide meaningful image segmentation, since the neighboring regions that share the same color name are very likely to belong to the same object. When combined with image segmentation, color naming can be used to select objects by color, describe the appearance of the image and even generate semantic annotations, since in many cases color names only, or in combination with other image features (such as spatial attributes, boundary and size features), provide valuable information about images and reveal their semantic meaning. For example, regions labeled as light blue and strong green may represent sky and grass, vivid colors are typically found in man-made objects, while modifiers such as brownish, grayish and dark convey the impression of the atmosphere in the scene.

The techniques and apparatus described here possesses several desirable properties. First, color naming operation is performed in a perceptually controlled way, so that the names attached to different colors reflect perceived color differences among them. Segmenting the color space into the color categories produces smooth regions. The methods account for the basic color terms and uses systematic syntax to combine them. It respects the graded nature of category membership, the universality of color foci, and produces results in agreement with human judgments. The first step in the method for determining the color name for an arbitrary input color this method, involves the selection of a balanced and well-represented set of color prototypes, i.e. vocabulary, and the corresponding color naming syntax. Color categorization is then carried through the color naming metric. Assuming a well-represented set of color name prototypes, the metric computes the distance between the input color and all the prototypes from the vocabulary. The “optimal” color name for the input color value is then assigned by taking the color name prototype, which corresponds to the minimum value of the color naming metric. The color naming metric is designed to overcome the limitations of existing color distance functions (such as Euclidean distance in a selected color space), and most importantly to account for the way humans perceive differences in the color-name domain.

Also described is a method for attaching the color name to each meaningful region in a digital image. According to this method, digital image is first subjected to the chromatic transformation to compensate for the differences in illumination conditions, with respect to both intensity and spectral characteristics. In the next step image pixels are subjected to labeling procedure. In one, but not limiting embodiment, each pixel is labeled uniform, texture, color edge, texture edge or noise. These labels drive the adaptive low-pass filtering operation that accounts for the spatial averaging processes in the early stages of the human visual system. The smoothed image is then subjected to color segmentation. This operation produces a simplified version of the image, i.e. a version which resembles the way humans interpret color information. The mean color value for each region from the color segmentation is then mapped into the corresponding color name, using the previously described method. The technique described also allows the user to provide an example color name, and then inspects the color name attached to image regions to find the occurrences of the specified color name in the input image. The method is not limited to digital images or collections of digital images (such as digital photographs, digital artwork, output of scanning devices, etc.), it also applies to video, multimedia, or any representation that involves the spatial arrangement of color values. A simplified representation of a scene is a representation that reduced only to the objects and regions that are perceived/processed by a human observer.

Also described is a method for deriving a verbal description, a description that can verbalized, for describing the color composition of a digital image. To extract color composition, the method starts from the color-segmented image, and using the color naming metric attaches the color name to all perceptually important pixels. In the next step, the histogram of color names is computed and used to generate the description of color composition. The structure and syntax of the designed vocabulary of color names, allow for descriptions at different accuracy levels that simulate different color naming patterns in humans. In the present, but not limited embodiment, at the fundamental level, the color names are expressed as <generic hue> (such as “red” or “blue”) or <generic achromatic term> (“gray”, “black”, “white”) from the syntax. At the coarse level, color names are expressed as <luminance><generic hue>, (e.g. “light blue”) or <luminance><generic achromatic term> (e.g. “dark gray”). At the medium level, color names are obtained by adding the <saturation> to the coarse descriptions (e.g. “vivid light blue”). Finally, at the detailed level, the <hue modifier>is added (e.g. “light vivid greenish blue”).

BRIEF DESCRIPTION OF THE DRAWINGS:

The foregoing and other aspects of these teachings are made more evident in the following detailed description of the invention, when read in conjunction with the attached drawing figures, wherein:

FIG. 1 is a simplified block diagram of a data processing system that is suitable for practicing this invention;

FIGS. 2A-2K illustrates an example embodiment of a color naming vocabulary;

FIG. 2L illustrates an example of an embodiment of a color naming syntax;

FIG. 3 is a logic flow diagram that illustrates a method for computing a similarity metric between an arbitrary color value cx and a color name prototype cp;

FIG. 4 is a logic flow diagram that illustrates a method for attaching a color name to a color sample cx;

FIG. 5 is a logic flow diagram that illustrates an example implementation of a method for computing a similarity metric between a color value cx and a color name prototype cp;

FIG. 6 is a diagram illustrating an example embodiment of the method for computing the color name distance between an input color cx, and a prototype color from the vocabulary cp (i.e. the computation of the color naming metric);

FIG. 7 a shows an application of a color naming method to name different color regions for color names assigned to the “color circle” in the HSL space defined with s=83 and l=135;

FIG. 7 b shows an application of a color naming method to name different color regions for transition of color names along the black-red, red-yellow, purple-white, and black-green lines in the RGB space;

FIG. 8 is a logic flow diagram that illustrates an image smoothing algorithm and detection of important regions and objects in an image.

FIG. 9 is a logic flow diagram that illustrates an example implementation of the image smoothing algorithm, followed by the detection of important regions and objects in the image;

FIG. 10 is a logic flow diagram that illustrates a method for attaching a color name to the regions and objects in the image;

FIG. 11 is an example result of image smoothing, region detection, and attaching the color names to the important regions and objects in the image;

FIG. 12 a is a logic flow diagram that illustrates a method for pointing out examples of selected color in the image;

FIG. 12 b is a logic flow diagram that illustrates a method for replacing a selected color with a different color;

FIG. 13 illustrates an example embodiment of the rules that describe different accuracy levels in expressing the color composition of an image;

FIG. 14 is a logic flow diagram that illustrates a method for the computation of the description of the image color composition;

FIG. 15 is an example of the result of the computation of color composition; and

FIG. 16 is illustrates some possible applications of the color naming methods.

DETAILED DESCRIPTION OF THE INVENTION

This invention provides image processing methods, apparatus and systems that are generally based on human perception, which: a) attaches a color name to an input color sample, b) describes objects and regions in an image with their color names, and c) generates the verbal description of image color composition. The methods are used in many image processing, computer vision, graphics and visualization applications. The methods enable development of better user interfaces and better man-machine interaction. The methods are implemented using a set of image processing algorithms, that analyze the input color value to determine optimal color name from the vocabulary of color names, and then process the image to break it into meaningful regions, determine the perceived color value of these regions and attach the color names appropriately. A first example of a method automatically assigns a color name to an input color value, or color sample, without requiring the use of a labor-intensive process where each color sample is labeled manually with the corresponding color name. A second example method, provides an algorithm to automatically label regions and objects in an image with the best describing color names and then generates the verbal description of the overall color composition. These are advantageous in image analysis, in applications dealing with multimedia databases, as well as in the fields of artificial intelligence, visualization, computer graphics, user-interface design and human-machine interaction. As used herein, a scene is consistent with human observation of the scene is consistent in a sense that all the important objects, regions and edges are preserved in the simplified representation, as well as all the colors that the human observer perceives.

FIG. 1 is a simplified block diagram of an example of an embodiment of a data processing system, 100 that is suitable for practicing the invention, as well as the teachings of the present invention. The data processing system 100 includes at least one data processor 101 coupled to a bus 102 through which the data processor 101 may address a memory subsystem 103, also referred to herein simply as the memory 103. The memory 103 may include RAM, ROM, and fixed or removable storage devices. The memory 103 is assumed to store a program with the program instructions for causing the data processor 101 to execute methods in accordance with the teachings of the invention. Also stored in the memory 103 is at least one database including data representing a vocabulary of color names or pointers to externally stored vocabulary data. Also stored in the memory 103 is a set of color values (or references to externally stored color values), and/or digital image data (or references to externally stored digital image data), and the resulting color naming data (i.e. data obtained by applying the teachings of the invention). The color values may include any color representation used to unambiguously specify color, such as three-element vector specification in the RGB, XYZ, HSV, Lab, Luv, or any other system which may be used to specify colors. The color values may be entered into the memory 103, through any input device (such as keyboard, microphone, calorimetric device, etc.), also they may be obtained through the mean of digital camera, scanner, or by use of any pointing device that selects or produces a certain color, such as mouse, pen, etc. The color values may also be obtained by reading the color information from digital images, by means of speech or character recognition, web pages, 3D models, simulation results, etc. The digital image data represents any spatial arrangement of color values. This may include photographs obtained from a digital camera, or any device that outputs digital images (such as camcorder, electronic microscope, telescope, medical imaging device, etc.), images obtained from a conventional film camera and scanned or digitized into the memory 103, computer generated images, or artworks that are photographed and scanned or digitized into the memory. In general digital image data may be any desired type or types of images, including digitally stored artworks, designs, paintings, forms, web page layouts, medical images, movie shots, screens and shots from video games, etc.

In some embodiments, the data processor 101 is coupled through the bus 102 to a network interface 106 that provides bidirectional access to a data communication network 107, such as intranet and/or internet. Coupled to the network 107 can be on or more sources and/repositories of external data, such as a remote digital image database 108, or remote database of color samples and/or color values 109, reachable through an associated server 110. The data processor 101 is also advantageously coupled through the bus 102, or the network 107, to at least one peripheral device 111, such as scanner 111A, printer 111B, digital camera 111C, medical imaging device 111D, microphone 111E, etc.

In general these teachings may be implemented using one or more software programs running on a personal computer, a server, a mainframe computer, a portable computer, PDA, an embedded computer, or by any suitable type of programmable data processor. The use of this invention substantially improves analysis, description, annotation and other information processing tasks related to digital images and digital color data. It also substantially improves human-machine interaction and user interface design. The teachings of this invention can also be configured to provide real-time processing of color-related and/or image-related information. The methods may be used to process the color data and/or digital image data stored in or referenced by the database 104 or in a remotely stored databases 108, 109 over the network 107 and in cooperation with the server 110.

The foregoing system and methods provide for verbally (i.e. through color names) describing individual colors specified by their color values, colors of object in digital images, as well as for generating the description of the overall color composition, based on the syntax and vocabulary of color names, and the color naming metric. The vocabulary, syntax and the metric are derived advantageously from perceptual experiments performed with human observers.

FIGS. 2A-2K illustrate an example embodiment of a vocabulary of color names, and FIG. 2 b illustrates an example, but not limited embodiment of a color naming syntax. Each entry in the vocabulary represents a color name prototype, specified by: 1) its color name, which follows the formal syntax of the color naming language, and 2) its color value in an arbitrary color space. Advantageously, the color value for each of the color name prototypes should represent the centroid of a region (in a perceptually uniform color space) that is described by the corresponding color name.

A set of experiments was conducted to: 1) understand human behavior in describing and naming individual colors, 2) understand human behavior in naming colors within complex scenes, (3) understanding human behavior describing color composition of images, and 4) determine the reliable and general set of color names to be used as the color name vocabulary. As used herein, the term general set of color names refers to a set of color names that is widely and frequently used in everyday life, is understood by the general public, and can most generally fully describe appearance of any object, scene, etc.). Ten subjects participated in the experiments. The vocabulary of color names used in an embodiment, of the invention, was developed starting from the set of color names described by K. Kelly, and D. Judd. Through the set of subjective experiments, the names of colors from the ISCC-NBS dictionary were changed to reflect human judgments in color naming. In these experiments (called Color Naming Experiments) known to those familiar with the art, the subjects were presented with the colors from the ISCC-NBS color dictionary, and asked to name each one of them. The color patches were displayed on the computer monitor.

In the first experiment, 64×64 pixel patches were arranged into 9×6 matrix and displayed against light gray background. The names were assigned by typing into a text box below each patch. After naming all the colors, the display was updated with the new set of patches, until all 267 colors from the dictionary have been named.

In the second color naming experiment, only one 200×200 pixels color patch was displayed on the screen. To analyze the agreement between these two color naming experiment, for each experiment a list of corrected color names was made, i.e. the names from the ISCC-NBS vocabulary were changed to reflect the opinion of the majority of subjects. The two lists showed very good agreement between the experiments. The final vocabulary is determined as the list from the first color naming experiment, since the names were generated in the interaction with other colors, which is seen as a better representation of real-life applications.

The two Color Naming Experiments were also useful for studying the patterns in human color naming behavior. For example, the most noticeable difference between the two color naming experiments was in the use of luminance modifiers. The same color was often perceived brighter when displayed in a small patch (Experiment 1) than in a large window (Experiment 2). Also, very pale and unsaturated (grayish) colors appeared more chromatic when displayed in a smaller window. To better understand the human behavior in color naming, two more subjective experiments were performed. In the first experiment, called Color Listing Experiment, subjects were asked to write on a sheet of paper names of at least twelve “most important” colors. In the second experiment, called Color Composition Experiment, the subjects were presented with 40 photographic images in a sequence and asked to name all the colors in the image. The images were selected to include different color compositions, spatial frequencies and arrangements among the colors, and provide broad content. The subjects were advised to use common color terms, as much as possible, to avoid rare color names, and color names derived from objects and materials. If they found a certain color difficult to name, they were advised to describe it in terms of other colors.

In the Color Listing Experiment 11 basic colors from B. Berlin and P. Kay, “Basic Color Terms: Their Universality and Evolution”, Berkeley: University of California, 1969, were found on the list of every subject. Nine subjects included beige, four included violet, two included cyan and magenta, and one included gold and silver. Modifiers for hue, saturation and luminance were not used. None of the subjects listed more than 14 color names. The subjects maintained the same limited vocabulary when describing images in the Color Composition Experiment, and added only beige to the basic colors. The modifiers for hue, saturation and luminance were used only to distinguish between the different types of the same hue in the single image (such as light blue for sky and dark blue for water, or orange yellow and vivid yellow for two different objects). Otherwise, the modifiers were seldom included into description. It was also observed that the subjects were more prone to attaching the modifiers for luminance than the modifiers for saturation.

Although most of the experimental images had rich color histograms, the subjects were not able to perceive more than ten colors at once. Dark colors, which typically exist in natural images due to shadows and edges, or bright colors due to highlights and specularities, were never included in the description, and were named only when referring to well-defined objects/regions. The subjects showed the highest level of precision in the Color Naming Experiments. Most of them ( 8/10) frequently used modifiers for hue, saturation or brightness. The modifiers for hue were designed either by joining two generic hues with a hyphen, or by attaching the suffix-ish to the farther hue, and leaving the closer hue unchanged. Typically, only two adjacent hues (such as purple and blue, or green and yellow) were combined.

The findings from all four experiments were used to devise the vocabulary depicted in FIG. 2 a. The terms for brightness are determined to be: blackish, very dark, dark, medium, light, very light and whitish. The terms for saturation are determined to be: vivid, strong, medium, moderate, grayish. The complete set of generic hues is determined to be: red, green, yellow, blue, orange, pink, purple, brown, beige and olive, with the addition of achromatic names black, white and gray. These findings were expressed in the formal syntax, as illustrated in FIG. 2 b.

Having established the vocabulary of color names, in accordance with an aspect of these teachings, the next step is to develop an algorithm for attaching the color name to an arbitrary input color. To address the graded nature of category membership and take into account the universality of color foci, the color categorization should be performed through the color naming metric. Assuming a well-represented set of prototypes (foci), the metric computes the distance between the input color and all the prototypes, thus quantifying the difference between the input color and each color name prototype.

By way of introduction, FIG. 3 shows a logic flow diagram that illustrates an example of a method for computing a similarity metric between a color value (color sample) cx and a color name prototype cp. The method is assumed to be executed by the data processor 101 under control of a program or program stored in the memory 103. This implementation is based on the finding that the colors that share the same distance (in arbitrary color space) to a color prototype cp, may not be perceived as equally similar to that prototype, in which case the color distance has to be updated proportionally to the amount of dissimilarity. The computation of the color metric between an arbitrary input color cx and the prototype cp, is then based on: a) computing the distance between cx and cp (step 301), b) finding the optimal color match to cp for the given distance (step 302), c) estimating the perceptual difference between cx and the optimal color match (step 303), and d) using this estimate to modify the distance between cx and cp (step 304).

FIG. 4 is a logic flow diagram that illustrates an example of a method for attaching a color name to the input color cx. Step 401 loads a vocabulary of color names, i.e. a set of color prototypes. Step 402 gets the input color value cx. At step 403, the data processing system compares the color value cx to the color value of each color name prototype from the vocabulary of color names 405, via the color naming metric. At step 404, the data processing system determines the minimum of the color naming metric and attaches the corresponding color name to the input color value cx. It should be understood that the present invention enables multiple vocabularies of color names 405 to be defined, such as, with a different vocabulary 405 specific for a different task or application.

By way of introduction, FIG. 5 is a logic flow diagram that illustrates an implementation of an example of a method for computing a similarity metric between a color value (color sample) cx and a color name prototype cp. The method is generally executed by the data processor 101 under control of a program or program stored in the memory 103. At step 501 the input color values are transformed into Lab and HLS coordinates. At step 502 the data processing system computes the optimal perceptual match to the prototype cp, for the given Lab distance. At step 505, the data processing system estimates the difference between the optimal perceptual match and the input color cx, and at step 506, the data processing system uses that estimate to modify the Lab distance between cx and cp.

An advantageous embodiment is based on the experimental finding that, although commonly used as measure of color similarity, Euclidean distance in the CIE Lab color space has several serious drawbacks for the use as a color naming metric. A first problem is related to the sparse sampling of the color space. Since the uniformity of the Lab suffers from defects its “nice” perceptual properties remain in effect only within a radius of few just-noticeable differences. Since the vocabulary of color names typically has a small number of color names, the distances between the colors may be large and the Euclidean metric only partially reflects the degree of color similarity. The other, more serious problem is related to human perception of color names and their similarity. Assuming an arbitrary color represented by a point cp in the Lab space, and a set of neighboring colors cni, i=. . . ,N on a circle with the radius L in that space, although all the pairs (cp, cni) are equally distant, humans do not perceive them as equally similar.

To test the relationship between perceptual similarity, and color distances in different color spaces, a subjective experiment was conducted. Four subjects participated in the experiment. The subjects were given ten sets of color samples. Each set consisted of a “prototype” color cp and five colors, cni, i=. . . , 5 so that D_(Lab)(cp, cni)=const. The distances between the prototype and the rest of the colors ranged from 6 to 30. For each set the subjects were asked to order the samples according to the perceived similarity to the set prototype. These sets were displayed in sequence on a computer monitor with light gray background under the daylight illumination. Each color sample was displayed in the 100×100 pixels window and could be moved on the screen to allow for the comparison with the prototype cp.

For all the pairs, the color distances, and angles between the color vectors were computed in both Lab and HSL spaces. These measurements were analyzed and also correlated with the subject's rankings. The first thing that was observed is that for D_(Lab)<7 all the colors were perceived as equally similar to the prototype. In most of the other cases subjects identified the best and worst match unanimously, frequently leaving other samples unranked. Typically, the colors subjects failed to rank were close in all three values. For the colors that were ranked by the subjects, the correlation between the subjects' rankings and rankings determined based on angle in the HSL space was 0.96. The correlation between the subjects' rankings and rankings determined based on the distance in the HSL space was 0.85, and the correlation with the rankings determined based on the angle in the Lab space was only 0.70. The slope of the least square regression line for the subjects' rankings and the rankings assigned according to the angle in the HSL space was 0.97. The slope of the least square regression line for the subjects' rankings and the rankings assigned according to the distance in the HSL space was 0.84, and the slope of the least square regression line for the subjects' rankings and the rankings assigned according to the angle in the Lab space was 0.87. These results indicate that the color angle in the HSL space and the color distance in the HSL space (alone or combined) may be used as predictors of perceptual similarity between the equidistant colors, although none of these two values alone represents an accurate color naming metric.

The color naming metric is then designed to embody the findings from the experiment. It models the behavior of subjects in color categorization. Assuming a prototype cp and arbitrary input color cx, as discussed previously, for a given D_(Lab)(c_(p),c_(x)), the combination between θ_(HSL)(c_(p),c_(x)) and D_(HSL)(c_(p),c_(x)) reflects the “reliability” or “goodness” of the Lab distance as the measure of similarity in the color name domain. Thus, this relationship is used to modify D_(Lab) in the following manner. First, the distances between c_(p) and c_(x) in the Lab and HSL color spaces is computed as: ${{D_{Lab}\left( {c_{p},c_{x}} \right)} = {L = \sqrt{\left( {l_{p} - l_{x}} \right)^{2} + \left( {a_{p} - a_{x}} \right)^{2} + \left( {b_{p} - b_{x}} \right)^{2}}}},{{D_{HLS}\left( {c_{p},c_{x}} \right)} = {R = {\sqrt{s_{p}^{2} + s_{x}^{2} - {2s_{p}s_{x}{\cos\left( {h_{p} - h_{x}} \right)}} + \left( {l_{p} - l_{x}} \right)^{2}}.}}}$

In the next step, given the radius R, the data processing system finds the color c_(o): (h_(o),s_(o),l_(o)), so that: D_(HLS)(c_(p),c_(o))=R,and ${\theta_{HSL}\left( {c_{p},c_{o}} \right)} = {\frac{{s_{p}s_{o}} + {l_{p}l_{o}}}{\sqrt{\left( {s_{p}^{2} + l_{p}^{2}} \right)\left( {s_{o}^{2} + l_{o}^{2}} \right)}} = 0.}$

Solving (1) results in: h_(o)=h_(p), s_(o1,2)=s_(p)(1±R/√{square root over ((s_(p) ²+l_(p) ²)))}, and the final solution is obtained by takin

This procedure is illustrated in FIG. 6. According to the experimental results, given the distance L, the optimal perceptual match corresponds to the direction θ_(HSL)(c_(p),c_(o))=0.

Assuming a small increment ΔR, the initial solution c_(o) is then updated in the following manner: R_(o)=D_(HSL)(c_(p),c_(o)), s_(o)=s_(o)(1±ΔR/R_(o)),and l_(o)=l_(o)(1±ΔR/R_(o)), until D_(Lab)(c_(p),c_(o))=D.

At this point, c_(o) represents an optimal perceptual match to c_(p), for the given Lab distance. This solution is therefore denoted c_(opt). An estimate of perceptual dissimilarity between c_(x) and c_(opt) is then computed as a relative difference in the HSL space between c_(opt), and the projection c_(x)

c_(opt): ${\Delta\quad{d\left( {c_{p},c_{x}} \right)}} = {\frac{{\mathbb{d}\left( {c_{p},c_{opt}} \right)} - {\mathbb{d}\left( {c_{p},c_{ox}} \right)}}{\mathbb{d}\left( {c_{p},c_{opt}} \right)} = {\frac{R_{o} - {R\quad\cos\quad\alpha}}{R_{o}} = {1 - \frac{{s_{p}s_{x}{\cos\left( {h_{p} - h_{x}} \right)}} + {l_{p}l_{x}} - s_{p}^{2} - l_{p}^{2}}{R_{o}\sqrt{s_{p}^{2} + l_{p}^{2}}}}}}$

As used by the model in predicting the amount of perceptual similarity, this formula takes into account both the distance and the angle in the HSL space. Therefore, this value is used to modify the Lab distance between the colors c_(p) and c_(x) in the following manner: D(c _(p) ,c _(x))=D _(Lab)(c _(p) ,c _(x))+k(D _(Lab)(c _(p) ,c _(x)))D _(Lab)(c _(p) ,c _(x))Δd(c _(p) ,c _(x)) i.e. the Lab distance is increased proportionally to the amount of dissimilarity Δd. The factor k(L) is introduced to avoid modifying distances between very close points, so that k(L)=0 if L<7, and to limit the amount of increase for large L, i.e. k(L)=const, if L>30. FIGS. 7 a and 7 b show applications of a metric used to name different color regions in the RGB and HSV color spaces. FIG. 7 a shows the color names assigned to the “color circle” in the HSL space defined with s=83 and l=135. FIG. 7 b shows the transition of color names along the black-red (0<r<255, g=20, b=20), red-yellow (r=235, 0<g<255, b=20), purple-white (0<r<255, g=0, 0<b<255), and black-green lines (r=20, 0<g<255, b=20) in the RGB space.

This approach is now expanded and applied to automatically attach color names to regions and objects in digital images, and to derive a verbal description of the color composition in images. This embodiment, is based at least in part on the fact that the human observation of a scene is typically very different from the recorded image. When describing the color composition of a complex scene (a scene that includes multiple objects, patterns, edges, or colors) human perception aims at constructing a visual representation with “vivid colors” and details across a wide range of lighting conditions. As a matter a fact, the very notion of a “color name” has its roots in the fact that humans perceive and interpret color information independently of the light source—the phenomenon known as color constancy. On the other hand, the teachings of this invention presented so far, generally only allow for naming isolated samples of colors, or attaching color names to individual image pixels; the teachings do not account for color constancy, or the spatial relationships and interactions among the colors.

An embodiment of a method that takes into account the issues listed above and aims to provide a description of the scene consistent with human observation is now described. The algorithm has two parts. The first part deals with the problem of color constancy, while the second one provides image smoothing and segmentation suitable for the extraction of perceived colors.

FIG. 8 is a logic flow diagram that illustrates an example of a method for constructing the image representation that resembles the human observation of a scene and its color content. This method is designed to simulate the processes conducted in the early stages of the human visual system, which performs significant amount of spatial averaging. At step 801, the input image is subjected to a chromatic adaptation transform, to eliminate the differences caused by different illumination conditions. Step 802 performs edge detection. Using the edge information, step 803 performs pixel labeling to distinguish between different types of pixels (e.g. uniform pixels, texture, region boundaries, noise, etc.). In step 804 the image is adaptively smoothed, where the amount of smoothing is determined based on pixel labels. In step 805, the image is subjected to image segmentation to detect important regions and objects in the image. All the steps are conducted by the data processor 101 under the control of a program or program stored in the memory 103.

More specifically, the first step (801) in the described method uses an application of a chromatic adaptation transform, that will compensate for the differences in illumination conditions, with respect to both intensity and spectral characteristics. The present embodiment, utilizes the Von Kries algorithm known to those skilled in the art, to accomplish this task. However it should be noted that experiments have demonstrated that any procedure that stretches the gray axis of the original image and realigns it with the theoretical gray axis for perfectly homogeneous flat-spectrum illumination, performs well in the given problem.

The following steps (802-805) in the method perform spatial averaging and image segmentation that simulate the way humans perceive the color content of images. More specifically, in its early stages the human visual system performs significant amount of spatial averaging, which accounts for the way humans interpret color information. The smoothing process is partly due to the nature of the channel between the retina and the visual cortex, where the neighboring receptors converge into one ganglion, while the groups of ganglions converge to single neurons in the visual cortex. However, the amount of averaging depends on the spatial frequencies, spatial relationships among colors, size of the observed objects and the global context. For example, it is well known that the capability of the human visual system to distinguish different colors drops rapidly for high spatial frequencies. Consequently, humans describe textured areas with a single color, since only spatial averages of the microvariations are perceived. On the other hand, the human visual system does not average isolated edges, as they represent object and region boundaries. Based on these observations, the smoothing and segmentation are carried out by modeling human perception as an adaptive low-pass filter operation, i.e. convolution of the input image with a localized kernel.

FIG. 9 shows a logic flow diagram that illustrates an example of an implementation of the image smoothing algorithm, followed by the detection of important regions and objects in the image. The method is assumed to be executed by the data processor 101 under control of a program or program stored in the memory 103. In step 901, the input image is processed according to the Von Kries transform to eliminate differences in the illumination conditions. Step 902, computes the amount of local contrast for each pixel in the image. In step 903 these values are used to determine if picture represents an edge. Step 904 computes the mean and variance of edge density in a neighborhood of each image pixel. In step 905, the means and variances are used to label pixels into different pixel types (e.g. noise, uniform, color edge, texture edge, coarse texture, fine texture). In step 906, pixel labels are used to control the amount of Gaussian smoothing. In step 907, the smoothed image is subjected to color segmentation.

With even more details, an embodiment of this method, may start by reducing the number of colors in the image via use of, for example, the LBG vector quantization algorithm. The result of color quantization represents a set of colors that optimally represent image colors in the Lab space. The next step is to compute the local color contrast, con(x,y), for each image pixel (x, y) and use it to determine if the pixel represent an edge (e.g. the pixel is considered an edge if its contrast exceeds a predefined threshold con_(min)). In the next step, to distinguish between the uniform regions, texture areas, and contour points, a sliding window is used to estimate the mean m, and variance v, of edge density for each pixel. Depending on these estimates the pixels are labeled as: TYPE 1) uniform, m=0, TYPE 2) noise, m<t_(m1) , TYPE 3) color edge, i.e. edge between two uniform regions, t_(m1)<m<t_(m2) , TYPE 4) texture edge, i.e. transition between uniform and textured region (or between two textured regions), t_(m2)<m<t_(m3) , TYPE 5) coarse texture, m>t_(m3), v>t_(v), or TYPE 6) fine texture, m>t_(m3), v<t_(v). The labeling operation produces pixel maps, which control the smoothing process and determine the computation of dominant colors in the following way. The pixels labeled as noise are first removed, i.e. their color is changed into the surrounding uniform color. Since the human eye creates a perception of a single dominant color within uniform regions, the amount of smoothing is largest for the uniform pixels. To allow for the highest amount of smoothing, the radius of the smoothing kernel is chosen adaptively for each uniform pixel, depending on the distance to the closest edge (color or texture). Pixels labeled as color edge (TYPE 3) and texture edge (TYPE 4) are not filtered. Also, since edges do not contribute to the way humans describe color content, these pixels are not used in the computation of color composition. Finally, the amount of averaging performed in textured areas is chosen based on the edge density, so that the amount of averaging is higher for fine textures and lower for coarse textures. Thus, the perceived color at the location (x,y), pc(x,y), is computed as: pc(x,y)=(c*g_(N(x,y)))(x,y), where g_(N(x) _(c) _(,y) _(c) ₎(x,y) is the Gaussian kernel defined as: ${{g_{N{({x_{c},y_{c}})}}\left( {x,y} \right)} = {k\quad{\exp\left( {- \frac{x^{2} + y^{2}}{\sigma^{2}}} \right)}}},{{\sum\limits_{{x^{2} + y^{2}} < {N{({x_{c},y_{c}})}}}{g_{N{({x_{c},y_{c}})}}\left( {x,y} \right)}} = 1}$ and N(x,y) is the radius of the kernel, which depends on the type of pixel in the center of the kernel, (x_(c),y_(c)), as: ${N\left( {x,y} \right)} = \left\{ \begin{matrix} {{{\left( {x,y} \right) - \left( {x_{e},y_{e}} \right)}},} & {{{uniform}\quad{region}},{{i.e.\left( {x_{c},y_{c}} \right)}\quad{is}\quad{Type}\quad 1}} \\ {D,} & {{{coarse}\quad{texture}},{{i.e.\left( {x_{c},y_{c}} \right)}\quad{is}\quad{Type}\quad 5}} \\ {{2D},} & {{{fine}\quad{texture}},{{i.e.\left( {x_{c},y_{c}} \right)}\quad{is}\quad{Type}\quad 6}} \end{matrix} \right.$ and (x_(e),y_(e)) is the edge pixel closest to (x,y). As given by these formulas the smoothing algorithm averages only within uniform and textured regions, thus simulating the behavior of the human visual system. However, in reality, due to imperfections in computing the edge maps, all the boundary pixels cannot be entirely excluded from the smoothing operation. This produces some “graying out” of the resulting image, either globally or in the specific regions. The desaturation of color may cause some regions to be perceived and consequently named quite differently, and there may be a need to consider some color-restoration scheme. Since the main goal is to preserve the same appearance of colors to the human observer as the original image, the color-restoration problem can be viewed as the color-constancy problem. Therefore, a chromatic adaptation transform in the linear color space, may be applied again to stretch the gray axis and minimize the color distortions introduced by averaging across different regions.

In the next step, the smoothed and “color-restored” image is subjected to color segmentation and used as an input to the color naming procedure. For image segmentation, one uses a color-based segmentation algorithm known to those skilled in the art.. Prior to the segmentation the color value for each pixel labeled as color edge or texture edge is replaced with the color value of the closest uniform or texture region. The resulting image is then used in conjunction with the color naming method to perform different color naming tasks in images.

FIG. 10 shows a logic flow diagram that illustrates an example of a method for attaching a color name to the regions and objects in the image. The method is assumed to be executed by the data processor 101 under control of a program or program stored in the memory 103. At step 1001, the input image is subjected to image smoothing and segmentation. At step 1002 the data processing system computes perceived color for each region and each object identified by the step 1001. At step 1003, the data processing system 101 uses the color naming metric to compute the color name for each image region, using its perceived color value as the input into the color naming algorithm, In this embodiment, the perceived color value of the image region is computed by averaging the color values of all perceptually important pixels from that region. Pixel color values are advantageously specified in a linear color space. In current, but not limited implementation of the method, all pixels labeled uniform, coarse texture and fine texture are considered perceptually important, while pixels labeled noise, color edge, and texture edge are not used in computation.

FIG. 11 shows an example of the result of image smoothing, region detection, and attaching the color names to the important regions and objects in the image. FIG. 11 shows: (A) an original input image, (B) image after the chromatic adaptation transform, (C) pixel map with pixels identified as uniform (white pixels), (D) pixel map with color and texture edges (white pixels), (E) pixel map with pixels identified as texture (white pixels), (F) image obtained as a result of adaptive smoothing, (G) image obtained as a result of color segmentation, and (H) image with color names attaches to all important regions.

FIG. 12 a shows a logic flow diagram that illustrates an example of a method for pointing out examples of selected color in the image. The method is assumed to be executed by the data processor 101 under control of a program or program stored in the memory 103. At step 1201, the input image is subjected to image smoothing and segmentation. At step 1202 the data processing system computes the perceived color for each region and each object identified by the step 1201. At step 1203, the data processing system 101 uses the color naming metric to compute the color name for each image region, based on its perceived color value. At step 1204, using the GUI 104 and 105, the user specifies and example color (or colors) ca. At step E, the data processor 101 searches all the color names in the input image to find all the occurrences of color name ca. At step 1205, using the display part of the GUI 104, the data processing system displays to the user the search result for the given image.

FIG. 12 b shows a logic flow diagram that illustrates a method for replacing a selected color with a different color. The method is assumed to be executed by the data processor 101 under control of a program or program stored in the memory 103. At step 1210, the input image is subjected to image smoothing and segmentation. At step 1211 the data processor 101 computes the perceived color for each region and each object identified by the step 1210. At step 1212, the data processor 101 uses the color naming metric to compute the color name for each image region, based on its perceived color value. At step 1213, using the GUI 104 and 105, the user specifies the color (or colors) to be replaced ca, and the replacement color (or colors) cb. At step 1214, the data processor 101 searches all the color names in the input image to find all the occurrences of color name ca. At step 1215, the data processor 101 replaces all the pixels having color ca, with the pixels having color cb.

An important application of these teachings is for example, in a method for automatically generating a verbal description of overall color composition in images. If the color name vocabulary and syntax are derived in a perceptual way, to reflect human behavior in color categorization, the teachings of this invention allow for describing color composition at different accuracy levels. These different precision levels correspond to different color naming patterns in humans. For example, people mostly use fundamental level when referring to well-known objects, or when color-related information is not considered important. According to the described subjective experiments, the descriptions of photographic images are mainly formulated with the coarse or medium precision, while the color names at the detailed level are typically used when describing specific objects or regions, or emphasizing the difference among them. Specifically: 1) fundamental level captures the behavior of our subjects in the Color Listing Experiment, 2) descriptions of the photographic images in the Color Composition Experiment were mainly given with the coarse or medium precision, and 3) color names at the detailed level were used when describing isolated color samples (Color Naming Experiments), or specific objects and regions (Color Composition Experiment).

FIG. 13 illustrates one example, but not limited embodiment of the rules that describe different accuracy levels in expressing the color composition of an image. These rules are derived based in the findings from the previously described subjective experiments. More specifically, at the fundamental level, the color names are expressed as <generic hue> or <generic achromatic term>from the syntax described in FIG. 2. At the coarse level, color names are expressed as <luminance><generic hue>, or <luminance><generic achromatic term>. At the medium level, color names are obtained by adding the <saturation> to the coarse descriptions. Finally, at the detailed level, the complete <color name>as specified in FIG. 2 is used.

FIG. 14 shows a logic flow diagram that illustrates an example of a method for the computation of the verbal description of the color composition of an input image. The method is generally executed by the data processor 101 eliminates all the perceptually insignificant colors, or remaps them into the closest perceptually important color. In current but not limited embodiment of this method, noise pixels, which are not perceived by the human visual system, are remaped into the closest uniform color, while the other perceptually insignificant pixels (such as region boundaries, and transitions between the regions) are eliminates (i.e. these pixels are not considered in the next steps). At step 1403, the data processor 101 computes the color name for each perceptually significant image pixel, based on its color value. At step 1404, the data processing system loads a set of rules that describe different color naming patterns in humans. At step 1405, the data processor 101 computes the histogram of color names for each accuracy level. FIG. 15 shows an example of results of the computation of color composition.

It should be noted that while the foregoing methods and system can be used to attach color names to individual pixels, samples of color, regions and objects in images and to derive the description of color composition, they can be used in many other applications involving manipulation with color values, color analysis and color naming in image processing, video processing, visualization, computer graphics and human-machine interaction. To start with, using color names to label regions can often improve the result of image segmentation, since the neighboring regions that share the same color name can be merged. In many cases color names only, or in combination with other features (such as spatial attributes, boundary and size features), can provide valuable information about the analyzed images and reveal their semantics. For example, as illustrated in FIG. 16a, regions labeled vivid blue or vivid purplish blue found in the upper part of the image, may represent sky on a bright sunny day. In the same picture regions with regular boundaries/geometry and bright saturated colors are very likely to be man-made objects.

Similarly, the flowers shown in FIG. 16 b can be easily detected based on the relationships between the curvature and color of the vivid reddish purple region, and the neighboring green regions. Overall color composition, as generated with the teachings of this invention, often captures the atmosphere in the scene. For example, by combining the linguistic terms from the color name syntax described in teachings of this invention, the scene shown in FIG. 15 b can be described as “brownish”, and easily related to a man-made environment. Another example of what can be accomplished by adding the color naming ability to the traditional image features (e.g. regions, lines, texture, etc.). By merging all the descriptors, as shown in FIG. 16 c, it can be easily concluded that the image is very likely to be an outdoor scene, probably a cityscape or a man-made structure seen from the large viewing distance. Assuming the hypothesis is correct, a step further would be to conclude “the weather wasn't really nice when the picture was taken”. Color naming ability may be implemented as a part of Artificial Intelligence Systems. For example it is also within a scope of these teachings to manipulate a robot by naming and describing the objects it should pick from the production line. In such a case a digital image robot receives would be subjected to the processing shown in FIG. 10, and the spatial location of the named color within the digital image, would be remapped to the actual physical location on the production line.

Thus the present invention provides a method employing a vocabulary of color names in assigning a color name to a pixel in a digital representation, including the steps of: providing the vocabulary of color names with a plurality of color prototypes, each color prototype having a prototype color name and a corresponding prototype color value; comparing a pixel color value of the pixel to the prototype color value of each color prototype in the vocabulary, and obtaining a color match value for said each color prototype in the vocabulary; determining a closest color match value resulting from the step of comparing; and assigning to the pixel a particular prototype color name corresponding to the closest match value.

In some embodiments the method includes forming the vocabulary of color names, includes the steps of: obtaining at least one general set of essential color names, each essential color name having a corresponding color value; whereby each color name includes a hue descriptor, brightness modifier, and saturation modifier; and selecting a subset of at least one general set in meeting an application desire for the vocabulary of color names; and/or acquiring a digital representation of a scene, employing the vocabulary in providing a description of a color composition in the scene.

Thus the present invention provides a method obtaining a vocabulary of color names, acquiring a digital representation of a scene, and employing the vocabulary in providing a description of a color composition in the scene.

The aspects of this invention also provides a tool for enriching user interfaces and man-machine interaction. For example, a techniques made possible by this invention, may allow a web designer to select and manipulate colors for the web page via a voice interface and speech recognition system. The same tools apply to many design processes, such as interior design, coloring of CAD models, architecture, design of textiles and prints, etc. The methods may be included as a part of e-commerce tools, where a user may type his search for a “light brown sofa”, and in addition to the text search, a database of images may be analyzed to find the objects that match the description.

Therefore, while methods and system have been disclosed for deriving color names of individual colors, color samples image pixels, and for describing colors and color composition in images, it should be appreciated that these teachings are not to be limited to only the presently described embodiments disclosed herein, nor is this invention to be limited in any way by the specific examples if color names, color syntax, color naming rules and subject matter that were disclosed above.

Thus it should be apparent that these teachings are clearly not intended to be limited only to processing color values and collection of digital images stored in a computer memory

devices, or in some form of computer readable media. As such, the various descriptions found above should be viewed as being exemplary of the teachings of this invention, as these descriptions were provided as an aid in understanding the teachings of this invention, and were not intended to be read in a limiting sense upon the scope and practice of this invention.

In some embodiments, the invention is an article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing assignment of a color name, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of a method of this invention. In other embodiments, the invention is implemented as a program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for assigning a color name, said method steps comprising the steps of a method of this invention.

The present invention can be realized in hardware, software, or a combination of hardware and software. A visualization tool according to the present invention can be realized in a centralized fashion in one computer system, or in a distributed fashion where different elements are spread across several interconnected computer systems. Any kind of computer system—or other apparatus adapted for carrying out the methods and/or functions described herein—is suitable. A typical combination of hardware and software could be a general purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein. The present invention can also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which—when loaded in a computer system—is able to carry out these methods.

Computer program means or computer program in the present context include any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after conversion to another language, code or notation, and/or reproduction in a different material form.

Thus the invention includes an article of manufacture which comprises a computer usable medium having computer readable program code means embodied therein for causing a function described above. The computer readable program code means in the article of manufacture comprises computer readable program code means for causing a computer to effect the steps of a method of this invention. Similarly, the present invention may be implemented as a computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing a function described above. The computer readable program code means in the computer program product comprising computer readable program code means for causing a computer to effect one or more functions of this invention. Furthermore, the present invention may be implemented as a program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for causing one or more functions of this invention.

It is noted that the foregoing has outlined some of the more pertinent objects and embodiments of the present invention. This invention may be used for many applications. Thus, although the description is made for particular arrangements and methods, the intent and concept of the invention is suitable and applicable to other arrangements and applications. It will be clear to those skilled in the art that modifications to the disclosed embodiments can be effected without departing from the spirit and scope of the invention. The described embodiments ought to be construed to be merely illustrative of some of the more prominent features and applications of the invention. Other beneficial results can be realized by applying the disclosed invention in a different manner or modifying the invention in ways known to those familiar with the art. 

1. A method comprising employing a vocabulary of color names in assigning a color name to a pixel in a digital representation, including the steps of: providing said vocabulary of color names with a plurality of color prototypes, each said color prototype having a prototype color name and a corresponding prototype color value; comparing a pixel color value of said pixel to said prototype color value of each color prototype in the vocabulary, and obtaining a color match value for said each color prototype in the vocabulary; determining a closest color match value resulting from said step of comparing; and assigning to said pixel a particular prototype color name corresponding to said closest match value.
 2. A method as recited in claim 1, further comprising forming said vocabulary of color names, includes the steps of: obtaining at least one general set of essential color names, each essential color name having a corresponding color value; whereby each color name includes a hue descriptor, brightness modifier, and saturation modifier; and selecting a subset of said at least one general set in meeting an application desire for said vocabulary of color names.
 3. A method as recited in claim 2, wherein the step of obtaining includes starting with a large number of arbitrary color names having corresponding color values and modify said color names through subjective experiments to obtain a general set that models human behavior in color naming.
 4. A method as recited in claim 1, wherein the step of comparing includes the steps of: computing a color distance in a selected color space between the color value of said pixel and said prototype color value; finding the closest perceptual match to the prototype color value for said color distance; computing an estimate value of perceptual dissimilarity between said closest perceptual match and color value of said pixel; and using said estimate value to modify said color distance, thereby obtaining said color match value.
 5. A method as recited in claim 1, wherein the step of determining includes finding the prototype color value having the minimum color naming distance to the color value of said pixel.
 6. A method as recited in claim 1, further comprising: acquiring a digital representation of a scene; employing said vocabulary in providing a description of a color composition in said scene.
 7. An article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing assignment of a color name, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of claim
 1. 8. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for assigning a color name, said method steps comprising the steps of claim
 1. 9. An apparatus comprising means for employing a vocabulary of color names in assigning a color name to a pixel in a digital representation, including: means for providing said vocabulary of color names with a plurality of color prototypes, each said color prototype having a prototype color name and a corresponding prototype color value; means for comparing a pixel color value of said pixel to said prototype color value of each color prototype in the vocabulary, and obtaining a color match value for said each color prototype in the vocabulary; means for determining a closest color match value resulting from said step of comparing; and means for assigning to said pixel a particular prototype color name corresponding to said closest match value.
 10. An apparatus as recited in claim 9, further comprising means for forming said vocabulary of color names, including: means for obtaining at least one general set of essential color names, each essential color name having a corresponding color value; means for whereby each color name includes a hue descriptor, brightness modifier, and saturation modifier; and means for selecting a subset of said at least one general set in meeting an application desire for said vocabulary of color names.
 11. An apparatus comprising: means for obtaining a vocabulary of color names; means for acquiring a digital representation of a scene; and means for employing said vocabulary in providing a description of a color composition in said scene.
 12. Apparatus as recited in claim 11, wherein the means for providing includes means for employing color names in describing the scene and in describing objects in said scene.
 13. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing assignment of a color name to a pixel in a digital representation, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 9. 14. A computer program product comprising a computer usable medium having computer readable program code means embodied therein for causing provision of a description of a color composition in a scene, the computer readable program code means in said computer program product comprising computer readable program code means for causing a computer to effect the functions of claim
 11. 15. A method comprising: obtaining a vocabulary of color names; acquiring a digital representation of a scene; and employing said vocabulary in providing a description of a color composition in said scene.
 16. A method as recited in claim 15, further comprising at least one limitation taken from a group of limitations consisting of: wherein the step of providing includes employing color names in describing the scene and in describing objects in said scene; wherein the step of employing includes: computing a simplified representation of said scene to model a human perception of said scene: segmenting a digital image representing said scene into a set of meaningful regions: computing a perceived color value for each said meaningful region: assigning a region color name from said vocabulary to each said meaningful region, using said region color names to describe the color composition of said scene at different accuracy levels; further comprising computing a simplified representation of said scene corresponding to a human observation of said scene; wherein the step of computing a simplified representation of said scene includes: applying a chromatic transformation to accommodate for a particular illumination condition of said scene; labeling said each pixel in said image with a label of a descriptive type to correspond with the descriptive type of an element of said scene to which said each pixel belongs; performing adaptive smoothing of said image with an amount of smoothing around said each pixel in correspondence with the descriptive type of said each pixel; for said each pixel, determining whether said each pixel is a perceptually significant pixel or a perceptually insignificant pixels; and reapplying chromatic transformation to preserve a color appearance as perceived in said human observation; wherein the step of labeling includes: determining if said each pixel in said image represents an edge; estimating distribution of edge density in a neighborhood of said each pixel in said image; and using said distribution to determine a descriptive type of said each pixel and labeling said each pixel accordingly; wherein the descriptive type includes a type taken from a group of types including: uniform, noise, contour, region boundary texture boundary transition region, coarse texture, and fine texture; wherein said step of determining includes deeming said each pixel to be perceptually significant if said each pixel is at least one of: uniform, in a dominant object, in a dominant background, coarse texture and fine texture; wherein said step of determining includes deeming said each pixel to be perceptually insignificant if said each pixel is at least one of: noise, contour, region boundary texture boundary, and transition region; wherein the step of labeling produces a label for said each pixel, and the step of smoothing includes; obtaining the label for said each pixel in said image; and using said label for said each pixel in determining a smoothing filter to be used for said each pixel in said image; wherein the step of smoothing is performed only on perceptually significant pixels; further comprising changing said smoothing filter depending on a particular descriptive type of a particular pixel in a center of the smoothing filter; wherein said support of a smoothing filter is largest for pixels labeled uniform and smallest for pixels labeled coarse texture; wherein the step of segmentation includes at least one of the following: color segmentation, texture segmentation, region growing, region merging, region splitting, multiresolution segmentation; and wherein the step of computing a perceived color value for a meaningful color region includes: changing a pixel value of each perceptually insignificant pixel in said region into a new value equal to the pixel value of a closest perceptually significant pixel from said region: and averaging color values of all pixels in said region. 17-28. (canceled)
 29. A method as recited in claim 16, wherein the step of assigning includes: providing said vocabulary of color names with a plurality of color prototypes, each said color prototype having a prototype color name and a corresponding prototype color value; comparing said perceived color value of each said meaningful region to said prototype color value of each color prototype in the vocabulary, and obtaining a color match value for said each color prototype in the vocabulary; determining a closest color match value resulting from said step of comparing; and assigning to said meaningful region a particular prototype color name corresponding to said closest match value.
 30. A method as recited in claim 29, further comprising forming said vocabulary of color names, including the steps of: obtaining at least one general set of essential color names, each essential color name having a corresponding color value; wherein each color name includes a hue descriptor, brightness modifier, and saturation modifier; and selecting a subset of said at least one general set in meeting an application desire for said vocabulary of color names.
 31. A method as recited in claim 16, having at least one limitation taken from a group of limitations consisting of: wherein the step of using includes: providing a set of rules defining accuracy levels in color naming, selecting an accuracy level meeting an application desire, and computing a histogram of color names for said scene, for said selected accuracy level; further comprising forming said rules, includes the steps of: obtaining a set of accuracy levels describing human behavior in color naming, and deriving rules whereby color names and each accuracy level include at least one of: a hue descriptor, a combination of brightness modifiers, and a saturation modifier: wherein the set of accuracy levels is determined employing subjective experiments modeling human behavior in color naming; wherein the step of computing a histogram of color names for said scene includes: determining color names present in said scene. computing a total area for each said color name, discarding color names not meeting an area criterion, and combining color names according to said rule for said selected accuracy level; and further comprising: providing color names for objects in said scene; and pointing out examples of named color in said scene. 32-35. (canceled)
 36. A method comprising computing a simplified representation of a scene consistent with human observation of said scene, including the steps of: applying chromatic transformation to accommodate for different illumination conditions; labeling pixels in said scene into different pixel types; performing adaptive smoothing of said image where the amount of smoothing around each pixel depends on the type of said pixel; determining perceptually significant pixels and perceptually insignificant pixels; and reapplying chromatic transformation to preserve the color appearance to the human observer;
 37. An article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing provision of a description of a color composition in a scene, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of claim
 15. 38. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for providing a description of a color composition in a scene, said method steps comprising the steps of claim
 15. 39. An article of manufacture comprising a computer usable medium having computer readable program code means embodied therein for causing provision of a description of a color composition in a scene, the computer readable program code means in said article of manufacture comprising computer readable program code means for causing a computer to effect the steps of claim
 36. 40. A program storage device readable by machine, tangibly embodying a program of instructions executable by the machine to perform method steps for providing a description of a color composition in a scene, said method steps comprising the steps of claim
 36. (original) 